package com.xiao.community.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author 韩国涛
 * @email 18862701405@gmail.com
 * @date 2021-09-10 15:22:54
 */
@Data
@TableName("orders")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Integer id;

	/**
	 * 订单ID
	 */
	private String orderId;
	/**
	 * 用户ID
	 */
	private Integer userId;
	/**
	 * 商品ID
	 */
	private Integer goodsId;
	/**
	 * 收货地址ID
	 */
	private Integer addressId;
	/**
	 * 商品名称
	 */
	private String goodsName;
	/**
	 * 商品数量
	 */
	private Integer goodsNum;
	/**
	 * 商品价格
	 */
	private BigDecimal goodsPrice;
	/**
	 * 订单状态
	 */
	private Integer orderStatus;
	/**
	 * 订单创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date orderCtime;
	/**
	 * 支付时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date orderZhifu;

	private Integer pintuanId;

	private BigDecimal allmoney;

	private Integer ifstart;

	private Integer ifzhifu;
}
